// 引入defineStore
import {defineStore} from 'pinia'
export const useCoundStore = defineStore('cound',{
    actions:{
        // 加
        increment(value:number){
            console.log(value,'我是pinia调用时接收的参数');
            
            this.sum = value
        }
    },
    state() {
        return {
            sum:6
        }
    },
    getters:{
        bigSum:state => state.sum
    }
})